package me.zhao.proxy;

public class TestComplex {
	public static void main(String[] args) {
		Car car = new Car();
		
		//先记录日志，再记录时间
		CarTimeProxy ctp = new CarTimeProxy(car);
		CarLogProxy clp = new CarLogProxy(ctp);
		clp.move();
		
		//先记录时间，再记录日志
		CarLogProxy clp1 = new CarLogProxy(car);
		CarTimeProxy ctp1 = new CarTimeProxy(clp1);
		ctp1.move();
				
	}
}
